<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd">

<struts> 
	<include file="struts-default.xml" />
	<!-- 此constant设置临时文件存放目录，因为默认的default.properties中没有指定 -->
	<constant name="struts.multipart.saveDir" value="/opt/tmp/"></constant>
	<constant name="struts.multipart.maxSize" value="10485760000" />
	<!-- 将action托管给spring -->
	<constant name="struts.objectFactory" value="spring"></constant>
    <constant name="struts.multipart.parser" value="cos"/> 
	
	<bean type="org.apache.struts2.dispatcher.multipart.MultiPartRequest" 
  		class="cn.ffcs.util.ftp.CosMultiPartRequest" name="cos" scope="prototype"/> 
	
	<!-- 导入各模块struts配置 -->
	<include file="struts-base.xml"></include>
	<include file="cn/ffcs/bpm/struts-bpm.xml"></include>
	<include file="cn/ffcs/security/struts-security.xml"></include>
	<include file="cn/ffcs/system/dict/struts-dict.xml"></include>
	<include file="cn/ffcs/sort/struts-sort.xml"></include>
	<include file="cn/ffcs/product/struts-product.xml"></include>
	<include file="cn/ffcs/common/struts-common.xml"></include>
	<include file="cn/ffcs/ref/struts-productRefSort.xml"></include>
	<include file="cn/ffcs/productdict/struts-productDict.xml"></include>
	<include file="cn/ffcs/organ/struts-organ.xml"></include>
	<include file="cn/ffcs/share/struts-share.xml"></include>
	<include file="cn/ffcs/businessrequest/struts-businessRequest.xml"></include>
    <include file="cn/ffcs/sp/struts-sp.xml"></include>
    <include file="cn/ffcs/search/struts-search.xml"></include>
    <include file="cn/ffcs/contract/struts-contract.xml"></include> 
    <include file="cn/ffcs/tmp/struts-tmp.xml"></include>
    
    
</struts>

